package it.ap.sa.acqua.dao.model;
// Generated 23-ago-2017 17.05.29 by Hibernate Tools 4.3.1.Final

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.Parameter;

/**
 * TTankTypeAlert generated by hbm2java
 */
@DynamicUpdate
@Cache(region = "it.eng.db.TTankTypeAlert", usage = CacheConcurrencyStrategy.READ_WRITE)
@Entity
@Table(name = "t_tank_type_alert", schema = "public")
public class TTankTypeAlert implements java.io.Serializable {

	private Long id;

	private String nome;

	private Long numOfHour;

	public TTankTypeAlert() {
	}

	public TTankTypeAlert(String nome, Long numOfHour) {
		this.nome = nome;
		this.numOfHour = numOfHour;
	}

	@GenericGenerator(name = "generator", strategy = "org.hibernate.id.SequenceGenerator", parameters = @Parameter(name = "sequence", value = "sequence_id"))
	@Id
	@GeneratedValue(generator = "generator")

	@Column(name = "id", unique = true, nullable = false)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "nome")
	public String getNome() {
		return this.nome;
	}

	public void setNome(String nome) {
		this.nome = nome;
	}

	@Column(name = "num_of_hour")
	public Long getNumOfHour() {
		return this.numOfHour;
	}

	public void setNumOfHour(Long numOfHour) {
		this.numOfHour = numOfHour;
	}

	/**
	 * toString
	 * @return String
	 */
	public String toString() {
		StringBuffer buffer = new StringBuffer();

		buffer.append(getClass().getName()).append("@").append(Integer.toHexString(hashCode())).append(" [");
		buffer.append("id").append("='").append(getId()).append("' ");
		buffer.append("nome").append("='").append(getNome()).append("' ");
		buffer.append("numOfHour").append("='").append(getNumOfHour()).append("' ");
		buffer.append("]");

		return buffer.toString();
	}

}
